<!--  -->
<template>
  <div class="name">{{ name }}</div>
</template>

<script>
import { useUserStore } from "@/store/index";

export default {
  data() {
    return {
      name: useUserStore().name,
    };
  },
  components: {},
  mounted() {
    // this.getName();
  },
  methods: {
    getName() {
      const userStore = useUserStore();
      this.name = userStore.name;
    },
  },
};
</script>

<style lang='scss' scoped>
</style>
